import { dataQueryAxios } from '@/utils/request'

// 企业榜单
export const getCompanyRankList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies/ranks`,
    method: 'get',
    params
  })
}

// 更新企业榜单
export const updateCompanyRank = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies/ranks/${data.id}`,
    method: 'put',
    data
  })
}

// 企业资质
export const getCompanyQualificationsList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies/qualifications`,
    method: 'get',
    params
  })
}

// 更新企业榜单
export const updateCompanyQualifications = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies/qualifications/${data.id}`,
    method: 'put',
    data
  })
}
